package com.example.lishop.service

import javax.validation.GroupSequence

/**
 * Created on 2021/6/13 18:55
 * @author shuguo
 * 分组校验，分组顺序校验
 */

interface LiValid {

    interface First {

    }

    interface Second {

    }

    @GroupSequence(value = [First::class, Second::class])
    interface GroupOne {
        // 先计算属于 First 组的约束，再计算属于 Second 组的约束
    }

    @GroupSequence(value = [Second::class, First::class])
    interface GroupTwo {
        // 先计算属于 Second 组的约束，再计算属于 First 组的约束
    }
}